﻿using Owin;
using Sentinel.OAuth.Core.Models;
using Sentinel.OAuth.Extensions;
using System;


namespace Inovout.Membership.Security.OAuth.AuthorizationServer
{
    public static class AppBuilderExtensions
    {
        public static IAppBuilder UseAuthorizationServer(this IAppBuilder app)
        {
            app.UseSentinelAuthorizationServer(
                new SentinelAuthorizationServerOptions()
                {
                    ClientManager = new ClientManager(),
                    UserManager = new UserManager(),
#if Debugger
                     IssuerUri = new Uri("http://localhost:3505/")
#else
                    IssuerUri = new Uri("http://account.kuajing.com.cn/")
#endif

                });
            return app;
        }
    }
}
